using System.Collections.Generic;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SouthernLand.Common.BOL.Content
{
    [ParseChildren(true)]
    public class ddlContents : DropDownList
    {
        public ddlContents()
        {
            List<Contents> obj = Contents.GetAllContents();
            int stt = 0;
            foreach (Contents f in obj)
            {
                stt = stt + 1;
                var l = new ListItem(stt + ". " + f.Title, f.ContentID.ToString());
                Items.Add(l);
            }
            Items.Insert(0, new ListItem(ResourceManager.GetString("PleaseSelect"), ""));
        }
    }
}